package com.subang.function.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.subang.function.mapper.SbApplicationMapper;
import com.subang.function.domain.SbApplication;
import com.subang.function.service.ISbApplicationService;

/**
 * 岗位筛选Service业务层处理
 * 
 * @author subei
 * @date 2025-10-20
 */
@Service
public class SbApplicationServiceImpl implements ISbApplicationService 
{
    @Autowired
    private SbApplicationMapper sbApplicationMapper;

    /**
     * 查询岗位筛选
     * 
     * @param recruitmentYear 岗位筛选主键
     * @return 岗位筛选
     */
    @Override
    public SbApplication selectSbApplicationByRecruitmentYear(String recruitmentYear)
    {
        return sbApplicationMapper.selectSbApplicationByRecruitmentYear(recruitmentYear);
    }

    /**
     * 查询岗位筛选列表
     * 
     * @param sbApplication 岗位筛选
     * @return 岗位筛选
     */
    @Override
    public List<SbApplication> selectSbApplicationList(SbApplication sbApplication)
    {
        return sbApplicationMapper.selectSbApplicationList(sbApplication);
    }

    /**
     * 新增岗位筛选
     * 
     * @param sbApplication 岗位筛选
     * @return 结果
     */
    @Override
    public int insertSbApplication(SbApplication sbApplication)
    {
        return sbApplicationMapper.insertSbApplication(sbApplication);
    }

    /**
     * 修改岗位筛选
     * 
     * @param sbApplication 岗位筛选
     * @return 结果
     */
    @Override
    public int updateSbApplication(SbApplication sbApplication)
    {
        return sbApplicationMapper.updateSbApplication(sbApplication);
    }

    /**
     * 批量删除岗位筛选
     * 
     * @param recruitmentYears 需要删除的岗位筛选主键
     * @return 结果
     */
    @Override
    public int deleteSbApplicationByRecruitmentYears(String[] recruitmentYears)
    {
        return sbApplicationMapper.deleteSbApplicationByRecruitmentYears(recruitmentYears);
    }

    /**
     * 删除岗位筛选信息
     * 
     * @param recruitmentYear 岗位筛选主键
     * @return 结果
     */
    @Override
    public int deleteSbApplicationByRecruitmentYear(String recruitmentYear)
    {
        return sbApplicationMapper.deleteSbApplicationByRecruitmentYear(recruitmentYear);
    }
}
